package generics;

import java.util.List;

/**
 * @author 杨宇
 * @version 1.0 2016/11/14
 */
public class SuperTypeWildcards {
    static void writeTo(List<? super Apple> apples) {
        apples.add(new Apple());
        apples.add(new Jonathan());
    }
}
